package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 配料实体类
 */
@Data
@TableName("ingredient")
public class Ingredient {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer recipeId;
    
    private Integer foodId;
    
    private String amount;
    
    private String type;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableField(exist = false)
    private Recipe recipe;
    
    @TableField(exist = false)
    private Food food;
} 